package shortlink.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import shortlink.dao.entity.ShortLinkDO;
import shortlink.dto.req.ShortLinkPageReqDTO;
import shortlink.dto.req.ShortLinkRecycleBinPageReqDTO;

public interface ShortLinkMapper extends BaseMapper<ShortLinkDO> {

/*分页查询短链接*/
    IPage<ShortLinkDO> pagelink(ShortLinkPageReqDTO requestParam);



/*分页查询回收站短链接*/
    IPage<ShortLinkDO>pageRecycleBin(ShortLinkRecycleBinPageReqDTO requestParam);

    void incrementStats(@Param("gid") String gid,
                        @Param("fullShortUrl") String fullShortUrl,
                        @Param("totalPv") Integer totalPv,
                        @Param("totalUv") Integer totalUv,
                        @Param("totalUip") Integer totalUip);
}
